package xml;

import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

import javax.xml.stream.XMLStreamException;

import dataStructures.*;
import exceptions.InvalidDataException;

@SuppressWarnings("restriction")
public class TweetWriterTest {
	public static void main(String args[]) throws InvalidDataException, FileNotFoundException, XMLStreamException {
		TweetWriter tweetWriter = new TweetWriter("tweetWriter" + new TimeStamp().timeStamp + ".xml");

		List<MyTweet> tweets = new ArrayList<MyTweet>();
		MyTweet t1 = new MyTweet("stefek", "mis jest super", "21:23", new Location("21", "32"));
		MyTweet t2 = new MyTweet("misia", "mis jest niehalo", "12:23",new Location("x1", "x2"));
		tweets.add(t1);
		tweets.add(t2);

		tweetWriter.writeTweets(tweets);

	}
}
